﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Peojct2
{
    public partial class Peojct : Form
    {
        public Peojct()
        {
            InitializeComponent();
        }
        private int id;
        public Peojct(int id, string name, int age, int scoure, string sex)
        {
            InitializeComponent();
            this.id = id;
            tex1.Text = name;
            tex2.Text = age.ToString ();
            tex3.Text = scoure.ToString ();
            tex4.Text = sex;
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Show();
        }
    }
}
